]> dgit.raspbian.org Git - gnome-shell.git/commit
switcherPopup: Rename destroy() to fadeAndDestroy()
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 13 Aug 2018 23:05:50 +0000 (20:05 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 9 Oct 2018 01:42:23 +0000 (22:42 -0300)
commite82c68accd810e808bb0fb08ffb88599156bbc2e
tree41d58a035cd281387227f8fb230422e471e57009
parent286ffbe2b637327fff87acebbe3c7683a05a16c6
switcherPopup: Rename destroy() to fadeAndDestroy()

In the process of purging all usages of Shell.GenericContainer
of GNOME Shell, one specific problematic situation that might
occur is when classes have functions that would clash with any
ClutterActor or StWidget function name.

One of such example is SwitcherPopup.destroy(). Right now, this
class is a pure JavaScript class that wraps a real actor, but
soon this will change, and it'll become a St.Widget subclass.

Another problem with functions that mimic the toolkit ones is
the predictability of them; after calling destroy(), that widget
is expected to not be available anymore. In SwitcherPopup case,
it is still available for a short while. In this case, that's not
a big problem, but the show() and hide() functions in other clases
are more problematic because the actor's visibility does not
follow that.

This commit is a first step in cleaning that up, and changes the
SwitcherPopup.destroy() to fadeAndDestroy().

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/153
js/ui/altTab.js
js/ui/status/keyboard.js
js/ui/switcherPopup.js